package com.org.api.admin.service;

import com.org.api.admin.entity.po.CmsUserBaseResultVO;
import com.org.api.admin.entity.po.CmsUserRedisIndex;
import com.org.api.admin.entity.po.CmsUserRedisIndexModule;
import com.org.platform.model.ResultModel;

import java.util.List;


/**
 * @Description
 * @auther dh
 * @date 2022/3/1 15:53
 */
public interface CmsUserRedisService {

	boolean isLongTeamOrDefault(CmsUserRedisIndex cmsUserRedisIndex);

	ResultModel saveIndexData(String keyPrefix, String[] keys, CmsUserRedisIndex cmsUserRedisIndex);

	ResultModel saveIndexModuleData(String keyPrefix, List<CmsUserRedisIndexModule> cmsUserRedisIndexModuleList, CmsUserRedisIndex cmsUserRedisIndex);


	/**
	 * 通过结束时间获取过期时间
	 */
	long getExpireTimeByEndTime(String showEndTime);

	/**
	 * 获取模块过期时间
	 */
	long getModuleExpireTime(CmsUserRedisIndex cmsUserRedisIndex);

	/**
	 * 获取模块详情过期时间
	 */
	long getModuleDetailExpireTime(Integer isLongTerm,String showEndTime);

	/**
	 * 获取首页数据详情
	 */
	List<Object> getIndexModuleData(List<Object> moduleList);
}
